<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">
    <head>
        <title>Facelet Title</title>
    </head>
    <body>
        <h:form>
            <rich:panel header="Detail information on News Entry">
                <h:panelGrid columns="3">
                    <h:outputLabel value="Info Header"/>
                    <rich:spacer width="30" height="10"/>
                    <rich:inplaceInput inputWidth="200" defaultLabel="Information Header ..."
                                       value="#{reg.newsHeader}"/>
                    <rich:spacer width="1" height="10"/>
                    <rich:spacer width="30" height="10"/>
                    <rich:spacer width="30" height="10"/>

                    <h:outputLabel value="Info Tags"/>
                    <rich:spacer width="30" height="10"/>
                    <h:inputTextarea rows="3" value="#{reg.newsTag}"/>

                    <h:outputLabel value="Detailed Information"/>
                    <rich:spacer width="30" height="10"/>
                    <rich:editor id="editor" width="500" height="500" viewMode="visual"
                                 value="#{reg.newsContent}">
                        <f:param name="theme" value="advanced"/>
                        <f:param name="plugins" value="safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager"/>
                        <f:param name="theme_advanced_buttons1" value="newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"/>
                        <f:param name="theme_advanced_buttons2" value="cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"/>
                        <f:param name="theme_advanced_buttons3" value="tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen"/>
                        <f:param name="theme_advanced_buttons4" value="insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage"/>
                        <f:param name="theme_advanced_toolbar_location" value="top" />
                        <f:param name="theme_advanced_toolbar_align" value="left" />
                        <f:param name="theme_advanced_statusbar_location" value="bottom"/>
                        <f:param name="theme_advanced_resizing" value="true"/>
                    </rich:editor>
                    <h:commandLink value="Save" action="#{reg.saveNews}"/>
                </h:panelGrid>
            </rich:panel>
        </h:form>
    </body>
</html>


